package com.show.business.device.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.show.business.device.bean.DeviceGroupAlarmPhone;

import java.util.List;

/**
 * <p>
 * 设备分组告警手机设置 Mapper 接口
 * </p>
 *
 * @author dvlp
 * @since 2024-09-30
 */
public interface DeviceGroupAlarmPhoneMapper extends BaseMapper<DeviceGroupAlarmPhone> {
    /**
     * 列表查询
     * @param deviceGroupAlarmPhone
     * @return
     */
    List<DeviceGroupAlarmPhone> getList(DeviceGroupAlarmPhone deviceGroupAlarmPhone);

    /**
     * 重复名称数量
     * @param deviceGroupAlarmPhone
     * @return
     */
    int repeatNameNum(DeviceGroupAlarmPhone deviceGroupAlarmPhone);

    /**
     * 软删除
     * @param id
     */
    void updateDel(String id);

    /**
     * 查询分组设置手机列表查询
     * @param groupId
     * @return
     */
    List<DeviceGroupAlarmPhone> getListByGroup(String groupId);

    /**
     * 根据设备分组id删除告警手机号
     * @param groupId
     * @return
     */
    void deleteAlarmPhoneByGroupId(String groupId);
}
